class Person {

}

function mixinRunner(BaseClass) {
  return class extends BaseClass {
    running() {
      console.log('running');
    }
  }
}

// 在js中只能有一个父类:单继承
class Student extends Person {

}

var newStudent = mixinRunner(Student)
var ns = new newStudent()
ns.running()